<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ include file="../../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            订单管理
            <small>订单表单</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="all-order-manage-list.html">订单管理</a></li>
            <li class="active">订单表单</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <!--订单信息-->
        <div class="panel panel-default">
            <div class="panel-heading">发票单</div>
            <%--<form id="editForm" action="${ctx}/cargo/contract/edit.do" method="post">--%>
                <input type="hidden" name="id" value="${invoice.invoiceId}">
                <div class="row data-type" style="margin: 0px">
                    <div class="col-md-2 title">发票编号</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="发票编号" name="invoiceId" value="${invoice.invoiceId}"/>
                    </div>

                    <div class="col-md-2 title">报运合同号</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="报运合同号" name="scNo" value="${invoice.scNo}"/>
                    </div>

                    <div class="col-md-2 title">贸易条款</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="贸易条款" name="tradeTerms" value="${invoice.tradeTerms}"/>
                    </div>

                    <div class="col-md-2 title">发票金额</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="发票金额" name="invoiceMoney" value="${invoice.invoiceMoney}"/>
                    </div>

                    <div class="col-md-2 title">发票状态</div>
                    <div class="col-md-4 data">
                        <div class="form-group form-inline">
                            <div class="radio"><label><input type="radio" ${invoice.status==0?'checked':''} name="status" value="0">草稿</label></div>
                            <div class="radio"><label><input type="radio" ${invoice.status==1?'checked':''} name="status" value="1">已生成财务报运</label></div>
                        </div>
                    </div>


                    <c:if test="${not empty invoice.pickupPhoto && !(invoice.pickupPhoto eq null) }">
                        <div class="col-md-2 title">提单凭证</div>
                        <div class="col-md-4 data">
                            <c:if test="${not empty invoice.pickupPhoto && !(invoice.pickupPhoto eq null) }">
                                <img src="${invoice.pickupPhoto}" width="300px" height="180px">
                                <input type="hidden" name="pickupPhoto" value="${invoice.pickupPhoto}">
                            </c:if>

                        </div>
                    </c:if>
                    <c:if test="${empty invoice.pickupPhoto || (invoice.pickupPhoto eq null) }">
                        <div class="col-md-2 title">提单凭证</div>
                        <div class="col-md-4 data">
                            还没有提单凭证
                        </div>
                    </c:if>

                    <div class="col-md-2 title">发票时间</div>

                    <div class="col-md-4 data">
                        <input type="text" placeholder="发票时间"  name="invoiceTime" class="form-control pull-right"
                               value="<fmt:formatDate value="${invoice.invoiceTime}" pattern="yyyy-MM-dd"/>" id="invoiceTime">
                    </div>

                </div>
          <%--</form>--%>
        </div>
        <!--订单信息/-->

        <!--工具栏-->
        <div class="box-tools text-center">
            <%--<button type="button" onclick='document.getElementById("editForm").submit()' class="btn bg-maroon">保存</button>--%>
            <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
        </div>
        <!--工具栏/-->

    </section>
    <!-- 正文区域 /-->

</div>
<!-- 内容区域 /-->
</body>
</html>